import { Component } from "react";
class myInput extends Component {
  constructor(props) {
    super(props);
    this.state = {
     
    };
  }
  childEvent() {
    console.log("自定义组件");
    this.setState({
      num1: "xxx",
    });
  }
  render() {
    return <div>我是div{this.state.num1}</div>;
  }
}

export default myInput;
